<?php 
session_start();
// date_default_timezone_set("PRC");
$mysqli = new mysqli('localhost:3306','root','','boke');
// $mysqli = new mysqli('localhost:3306','liuboyto_root','#MySQLmima#618','liuboyto_618');
mysqli_query($mysqli,"set names utf8");
$content = $_POST["content"];
$title = $_POST['title'];
// $datetime = date("y-m-d h:i:sa");
$userid = $_SESSION['userid'];
echo $content;
// echo $datetime;
$sql = "insert into wenzhang values(null,'$title','$content' ,now() ,'$userid') ";
$res = $mysqli->query($sql);
$mysqli->close();
header("location:wenzhang.html");
 ?>